package com.tfjybj.itoo.teach.provider.facade;

import org.apache.dubbo.config.annotation.Service;
import com.tfjybj.itoo.teach.FacadeApi.InstitutionApi;
import com.tfjybj.itoo.teach.entity.InstitutionEntity;
import com.tfjybj.itoo.teach.provider.service.InstitutionService;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.Collection;

/**
 * @author 吕德彪
 * @ClassName InstitutionFacade
 * @DESCRIPTION TODO
 * @create 2019/5/23
 */
@Service
@org.springframework.stereotype.Service
public class InstitutionFacade implements InstitutionApi {

    @Resource
    private InstitutionService institutionService;

    @Override
    public boolean save(InstitutionEntity institutionEntity) {
        return institutionService.save(institutionEntity);
    }

    @Override
    public boolean removeById(Serializable id) {
        return institutionService.removeById(id);
    }

    @Override
    public boolean removeByIds(Collection<? extends Serializable> idList) {
        return institutionService.removeByIds(idList);
    }

    @Override
    public boolean updateById(InstitutionEntity institutionEntity) {
        return institutionService.updateById(institutionEntity);
    }


    @Override
    public InstitutionEntity getById(Serializable id) {
        return institutionService.getById(id);
    }
}
